<template>
	<view class="padding">
		<!-- 列表start -->
		<view class="head_list cu-list menu sm-border">
			<view class="">
				<view class="" style=" ">
					<view class="text-df margin-bottom">职位标题</view>
					<view class="areabox text-df">
						<textarea placeholder="请输入职位标题" maxlength="20" style="width: 100%;height: 50upx;line-height: 1.5" :style="title ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
						 v-model="title" placeholder-style="font-size:28upx;line-height:44upx" :placeholder-style="title ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
						<view class=" txtnum" :class="title && title.length == 20 ? 'text-red' : 'text-gray'">
							{{ (title && title.length) || 0 }}/20</view>
					</view>
				</view>
			</view>
			<view class="ptb15 " @tap="goSelectJob('iwant')" style="width: 100%;">
				<view class=" align-center flex justify-between" style="">
					<text class="text-df" style="margin-right: 10upx;flex-shrink: 0">职位类别</text>
					<view class=" text-right flex justify-between" style="overflow-x: scroll; white-space: nowrap;">
						<view v-if="!(iwant && iwant.station_name)" class="text-gray"
							style="margin-left: 248upx;">请选择</view>
						<!-- <view v-else  > -->
						<view class=" " 	:style="iwant.station_name ? 'color:#666' : 'color:#BFBFBF'">
							{{ iwant.station_name }}
							<!-- <image @tap.stop="delJob(iwant, index)" :src="IMG_URL + 'static/miniwechat/cha.png'" mode=""></image> -->
						</view>
						<text class="cuIcon-right text-999"></text>
					</view>
				</view>
			</view>
			<view class="">
				<view class=" margin-top  " style=" ">
					<view class="text-df margin-bottom">职位主图 ({{ (imgOne && imgOne.length) || 0 }}/1)(选填)</view>
					<ben-upload v-if="defaultpic" :col="4" :max="1" @change="chooseLive" :defaultList="imgOne"
						:uShow='uShow'></ben-upload>
				</view>
			</view>
			<view class="">
				<view class=" margin-top  " style=" ">
					<view class="text-df margin-bottom">职位视频 ({{ videoImg!=''?1:0 }}/1)(选填)</view>
					<view class="cu-form-group">
						<view class="grid  grid-square flex-sub">
							<view class="bg-img" v-if="videoImg != ''">
								<image :src="videoImg" mode="aspectFill" style="width: 300upx ; height: 200upx;">
								</image>
								<view class="play" @tap="playVideo">
									<image :src="IMG_URL + 'static/miniwechat/play.png'" mode="aspectFill"></image>
								</view>
								<view class="cu-tag bg-red" @tap.stop="DelImg" style="z-index: 100;"><text
										class="cuIcon-close"></text></view>
							</view>
							<view class="solids" @tap="ChooseImage" v-if="videoImg == ''">
								<image :src="IMG_URL + 'static/miniwechat/creame_gray.png'" mode="aspectFill"></image>
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="">
				<view class=" margin-top  " style=" ">
					<view class="text-df margin-bottom">职位轮播图 ({{ (imgList && imgList.length) || 0 }}/9)(选填)</view>
					<view class="text-gray" style="font-size: 24upx;margin-bottom: 10upx;">（请上传尺寸为375*375像素的图片)</view>
					<ben-upload v-if="defaultpic" :col="4" :max="9" @change="bannerLive" :defaultList="imgList"
						:uShow='uShow'></ben-upload>
				</view>
			</view>
			<view class="bgc"></view>
			<!-- <view class="cu-item arrow">
				<view class="" style="width: 100%;">
					<view class="text-df" style="margin-bottom: 12upx;">招聘单位</view>
					<view class="text-df bold" style="margin-bottom: 12upx;">{{zhiwei}}</view>
				</view>
			</view>
			<view class="cu-item arrow">
				<view class="" style="">
					<view class="text-df " style="margin-bottom: 12upx;">招聘人数</view>
					<input type="number" placeholder="请输入招聘人数" maxlength="5" :disabled="checked" @click="focusCom()"
						v-model="zhaopin_number"
						:placeholder-style="zhaopin_number ? 'color:#666;font-weight:bold' : 'color:#E6E6E6'"
						:style="zhaopin_number ? 'color:#666;font-weight:bold' : 'color:#E6E6E6'" />
				</view>
			</view> -->
			<view @tap="toggleTab('price')" class="cu-item arrow">
				<view class="" style="">
					<view class=" text-df" style="margin-bottom: 12upx;">职位薪资</view>
					<view class="other flex justify-around align-center"
						style="font-size: 32upx;width: 100%;">
						<input type="number" v-model="min_salary" placeholder="最低薪资" maxlength="5" style="width: 40%;"
							:style="min_salary ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
							:placeholder-style="min_salary ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
						<text class="text-gray text-df" style="width: 20%;">至</text>
						<input type="number" v-model="max_salary" @blur="leaveCon" placeholder="最高薪资" maxlength="5"
							style="width: 40%;" :style="max_salary ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
							:placeholder-style="max_salary ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
					</view>
				</view>
			</view>
			<!-- <view class="cu-item arrow">
				<view class="" style="width: 100%;">
					<view class="text-df" style="margin-bottom: 12upx;">薪资发放类型(选填)</view>
					<picker @change="sortConfirm" mode="selector" :range="price_sort" style="width: 100%;"
						range-key="label" :style="busort ? 'color: #333;font-weight:bold' : 'color: #E6E6E6;'">
						<text style="font-size: 32upx;">{{ busort || '请选择类型' }}</text>
					</picker>
				</view>
			</view>
			<view class="cu-item arrow">
				<view class="" style="">
					<view class=" text-df" style="margin-bottom: 12upx;">薪资发放类型金额(选填)</view>
					<input type="number" maxlength="5" placeholder="请输入薪资发放类型金额" @blur="leavePrice" v-model="price_butie"
						:placeholder-style="price_butie ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
						:style="price_butie ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
				</view>
			</view> -->
			<view class="cu-item arrow">
				<view class="" style="width: 100%;">
					<view class="text-df" style="margin-bottom: 12upx;">薪资发放类型和金额(选填)</view>
					<view class="other flex justify-around align-center"
						style="font-size: 32upx;width: 100%;">
						<picker @change="sortConfirm" mode="selector" :range="price_sort" style="width: 40%;"
							range-key="label" :style="busort ? 'color: #333;font-weight:bold' : 'color: #E6E6E6;'">
							<text style="font-size: 32upx;">{{ busort || '请选择类型' }}</text>
						</picker>
						<text class="text-gray text-df" style="width: 20%;">金额</text>
						<input type="number" placeholder="请输入金额" @blur="leavePrice" v-model="price_butie" maxlength="5"
						:placeholder-style="price_butie ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" style="width: 40%;"
						:style="price_butie ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
					</view>
				</view>
			</view>
			<view class="cu-item arrow" >
				<view class="" style="width: 100%;">
					<view class="text-df" style="margin-bottom: 12upx;">门店劳务报酬服务费(选填)</view>
					<input type="text" maxlength="3000" placeholder="门店成功为你推荐一个人,所给门店的服务费" v-model="server_price"
						:placeholder-style="server_price ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
						:style="server_price ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
				</view>
			</view>
			<view class="cu-item arrow" v-if="zhiwei != '企业直招'">
				<view class="" style="width: 100%;">
					<view class="text-df" style="margin-bottom: 12upx;">厂发薪资(选填)</view>
					<input type="text" maxlength="3000" placeholder="请输入内容" v-model="factory_pay"
						:placeholder-style="factory_pay ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
						:style="factory_pay ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
				</view>
			</view>
			<view class="cu-item arrow" v-if="zhiwei != '企业直招'">
				<view class="" style="width: 100%;">
					<view class="text-df" style="margin-bottom: 12upx;">补贴(选填)</view>
					<input type="text" maxlength="3000" placeholder="请输入补贴内容" v-model="subsidy"
						:placeholder-style="subsidy ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
						:style="subsidy ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
				</view>
			</view>
			<view class="cu-item arrow" v-if="zhiwei != '企业直招'">
				<view class="" style="width: 100%;">
					<view class="text-df" style="margin-bottom: 12upx;">补贴备注(选填)</view>
					<!-- <input type="text" maxlength="3000" placeholder="请输入补贴备注" v-model="subsidy_remarks"
						:placeholder-style="subsidy_remarks ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
						:style="subsidy_remarks ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" /> -->
					<view class="areabox text-df">
						<textarea placeholder="请输入补贴备注" style="width: 100%;line-height: 1.5; height:100%; overflow-y: scorll;" :style="subsidy_remarks ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
						 v-model="subsidy_remarks" placeholder-style="font-size:32upx;line-height:44upx" :placeholder-style="subsidy_remarks ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
					</view>
				</view>
			</view>
			<view class="cu-item arrow" v-if="zhiwei != '企业直招'">
				<view class="" style="width: 100%;">
					<view class="text-df" style="margin-bottom: 12upx;">车补(选填)</view>
					<input type="text" maxlength="3000" placeholder="请输入车补内容" v-model="car_subsidy"
						:placeholder-style="car_subsidy ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
						:style="car_subsidy ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
				</view>
			</view>
			<view class="cu-item arrow" v-if="zhiwei != '企业直招'">
				<view class="" style="width: 100%;">
					<view class="text-df" style="margin-bottom: 12upx;">拿补贴日期(选填)</view>
					<input type="text" maxlength="11" placeholder="请输入车补内容" v-model="receiving_subsidy_date"
						:placeholder-style="receiving_subsidy_date ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
						:style="receiving_subsidy_date ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
				</view>
			</view>
			<view class="cu-item arrow">
				<view class="" style="width: 100%;">
					<view class="text-df " style="margin-bottom: 12upx;">经验要求</view>
					<picker @change="experienceConfirm" mode="selector" style="width: 100%;" :range="experience"
						range-key="label" :style="act_experience ? 'color: #333;font-weight:bold' : 'color: #E6E6E6;'">
						<text style="font-size: 32upx;">{{ act_experience || '请选择' }}</text>
					</picker>
				</view>
			</view>
			<view class="cu-item arrow">
				<view class="" style="width: 100%;">
					<view class=" text-df" style="margin-bottom: 12upx;">学历要求</view>
					<picker @change="degreeConfirm" mode="selector" style="width: 100%;" :range="degree_list"
						range-key="label" :style="degree_act ? 'color: #333;font-weight:bold' : 'color: #E6E6E6;'">
						<text style="font-size: 32upx;">{{ degree_act || '请选择' }}</text>
					</picker>
				</view>
			</view>
			<view @tap="toggleTab('agechoose')" class="cu-item arrow">
				<view class="" style="width: 100%;">
					<view class="text-df " style="margin-bottom: 12upx;">年龄要求</view>
					<!-- #ifdef MP-WEIXIN -->
					<picker @change="ageConfirm" @columnchange="ageChange" mode="multiSelector" style="width: 100%;"
						:range="age2_list" :value="age_inx"
						:style="age_act ? 'color: #333;font-weight:bold' : 'color: #E6E6E6;'">
						<text style="font-size: 32upx;" v-if="age_act">{{ age_act }}</text>
						<text v-else>请选择年龄要求</text>
					</picker>
					<!-- #endif -->

					<!-- #ifndef MP-WEIXIN -->
					<view class="other " :style="age_act ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
						style="font-size: 32upx;">{{ age_act || '请选择' }}</view>
					<!-- #endif -->
				</view>
			</view>
			<!-- <view class="cu-item arrow" v-if="zhiwei != '企业直招'">
				<view class="mt5 " style="width: 100%;">
					<view class="f28 margin-bottom">红包标题</view>
					<view class=" text-df">
						<input type="text" value="" placeholder="请输入" style="width: 100%;height: 50upx;"
							:style="hb_title ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" v-model="hb_title"
							placeholder-style="font-size:32upx;line-height:44upx"
							:placeholder-style="hb_title ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
					</view>
				</view>
			</view> -->
			<view class="cu-item arrow" v-if="zhiwei != '企业直招'">
				<view class="" style="width: 100%;">
					<view class="text-df" style="margin-bottom: 12upx;">选择红包类型(选填)</view>
					<picker @change="hbConfirm" mode="selector" :range="hb_sort" style="width: 100%;" range-key="label"
						:style="hbSort ? 'color: #333;font-weight:bold' : 'color: #E6E6E6;'">
						<text style="font-size: 32upx;">{{ hbSort || '请选择' }}</text>
					</picker>
				</view>
			</view>
			<view class="" v-if="zhiwei != '企业直招'">
				<view class="mt5 " style=" ">
					<view class=" margin-bottom f28">设置加薪金额(选填)</view>
					<view class=" text-df">
						<input type="number" value="" placeholder="请输入" style="width: 100%;height: 50upx;"
							:style="add_price ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" v-model="add_price"
							maxlength="5" placeholder-style="font-size:32upx;line-height:44upx"
							:placeholder-style="add_price ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
					</view>
				</view>
			</view>
			<view class="" v-if="zhiwei != '企业直招'">
				<view class="mt5 " style=" ">
					<view class=" margin-bottom f28">需要助力分享人数(选填)</view>
					<view class=" text-df">
						<input type="number" value="" placeholder="请输入" style="width: 100%;height: 50upx;"
							:style="share_num ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" v-model="share_num"
							maxlength="3" placeholder-style="font-size:32upx;line-height:44upx"
							:placeholder-style="share_num ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
					</view>
				</view>
			</view>
			<view class="bgc"></view>
			<!-- <view class="" v-if="zhiwei != '企业直招'">
				<view class="">
					<view class="mt5" style=" ">
						<view class="text-df margin-bottom">职位及姓名1:（选填）</view>
						<view class=" text-df">
							<input type="text" value="" placeholder="请输入职位及姓名" style="width: 100%;height: 50upx;"
								:style="name1 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" v-model="name1"
								placeholder-style="font-size:32upx;line-height:44upx"
								:placeholder-style="name1 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
						</view>
					</view>
				</view>
				<view class="">
					<view class="mt5" style=" ">
						<view class="text-df margin-bottom">联系方式1:（选填）</view>
						<view class=" text-df">
							<input type="number" value="" placeholder="请输入联系电话" style="width: 100%;height: 50upx;"
								:style="mobeil1 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" v-model="mobeil1"
								placeholder-style="font-size:32upx;line-height:44upx"
								:placeholder-style="mobeil1 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
						</view>
					</view>
				</view>
			</view> -->
		<view class="" v-if="zhiwei == '企业直招'">
			<view class="mt5" style=" ">
				<view class="text-df margin-bottom">招聘电话:（选填）</view>
				<view class=" text-df">
					<input type="number" value="" placeholder="请输入联系电话" style="width: 100%;height: 50upx;"
						:style="mobeil1 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" v-model="mobeil1"
						placeholder-style="font-size:32upx;line-height:44upx"
						:placeholder-style="mobeil1 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
				</view>
			</view>
		</view>
			<!-- <view class="" v-if="zhiwei != '企业直招'">
				<view class="mt5" style=" ">
					<view class="text-df margin-bottom">职位及姓名2:（选填）</view>
					<view class=" text-df">
						<input type="text" value="" placeholder="请输入职位及姓名" style="width: 100%;height: 50upx;"
							:style="name2 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" v-model="name2"
							placeholder-style="font-size:32upx;line-height:44upx"
							:placeholder-style="name2 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
					</view>
				</view>
			</view>
			<view class="" v-if="zhiwei != '企业直招'">
				<view class="mt5" style=" ">
					<view class="text-df margin-bottom">联系方式2:（选填）</view>
					<view class=" text-df">
						<input type="number" value="" placeholder="请输入联系电话" style="width: 100%;height: 50upx;"
							:style="mobeil2 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" v-model="mobeil2"
							maxlength="11" placeholder-style="font-size:32upx;line-height:44upx"
							:placeholder-style="mobeil2 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
					</view>
				</view>
			</view> -->
			<!-- <view class="" v-if="zhiwei != '企业直招'">
				<view class="mt5" style=" ">
					<view class="text-df margin-bottom">职位及姓名3:（选填）</view>
					<view class=" text-df">
						<input type="text" value="" placeholder="请输入职位及姓名" style="width: 100%;height: 50upx;"
							:style="name3 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" v-model="name3"
							placeholder-style="font-size:32upx;line-height:44upx"
							:placeholder-style="name3 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
					</view>
				</view>
			</view>
			<view class="" v-if="zhiwei != '企业直招'">
				<view class="mt5" style=" ">
					<view class="text-df margin-bottom">联系方式3:（选填）</view>
					<view class=" text-df">
						<input type="number" value="" placeholder="请输入联系电话" style="width: 100%;height: 50upx;"
							:style="mobeil3 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" v-model="mobeil3"
							maxlength="11" placeholder-style="font-size:32upx;line-height:44upx"
							:placeholder-style="mobeil3 ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" />
					</view>
				</view>
			</view> -->
			<view class="pt10" v-if="zhiwei != '企业直招'">
				<view class="   " style=" ">
					<view class="text-df margin-bottom">薪资说明（选填）</view>
					<!-- <view class="areabox text-df" style="height: 370upx;">
						<textarea placeholder="请输入薪资说明" maxlength="1500"
							style="width: 100%;height: 300upx;line-height: 1.5"
							:style="salaryDescription ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
							v-model="salaryDescription" placeholder-style="font-size:32upx;color:#E6E6E6" /> -->
					<!-- #ifdef MP-WEIXIN -->
					<view class="areabox text-df container" style="margin: 0; height: 456upx; padding: 0; position: relative;">
					<!-- #endif -->
					<!-- #ifdef APP-PLUS -->
					<view class="areabox text-df container" style="margin: 0; height: 470upx; padding: 0; position: relative;">
					<!-- #endif -->
						<robin-editor @sendContents="setRichTextContents" :value="salaryDescription"></robin-editor>
						<view class="text-gray txtnum"
							:class="salaryDescription && salaryDescription.length == 1500 ? 'text-red' : 'text-gray'">
							{{ (salaryDescription && salaryDescription.length) || 0 }}/1500</view>
					</view>
				</view>
			</view>
			<view class="pt10" v-if="zhiwei == '企业直招'">
				<view class="   " style=" ">
					<view class="text-df margin-bottom">职位描述（选填）</view>
					<!-- <view class="areabox text-df" style="height: 370upx;">
						<textarea
							placeholder="请输入职位描述"
							maxlength="1500"
							style="width: 100%;height: 300upx;line-height: 1.5"
							:style="salaryDescription ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
							v-model="salaryDescription"
							placeholder-style="font-size:32upx;color:#E6E6E6"
						/>
						<view class="text-gray txtnum" :class="salaryDescription && salaryDescription.length == 1500 ? 'text-red' : 'text-gray'">{{ (salaryDescription && salaryDescription.length) || 0 }}/1500</view>
					</view> -->
					<!-- #ifdef MP-WEIXIN -->
					<view class="areabox text-df container" style="margin: 0; height: 456upx; padding: 0; position: relative;">
					<!-- #endif -->
					<!-- #ifdef APP-PLUS -->
					<view class="areabox text-df container" style="margin: 0; height: 470upx; padding: 0; position: relative;">
					<!-- #endif -->
						<!-- <textarea placeholder="请输入职位描述" maxlength="1500"
							style="width: 100%;height: 300upx;line-height: 1.5"
							:style="salaryDescription ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
							v-model="salaryDescription" placeholder-style="font-size:32upx;color:#E6E6E6" /> -->
						<robin-editor ref="robin" @sendContents="setRichTextContents" :value="salaryDescription"></robin-editor>
						<view class="text-gray txtnum"
							:class="richTextContents && richTextContents.length == 1500 ? 'text-red' : 'text-gray'">
							{{ (richTextContents && richTextContents.length) || 0 }}/1500
						</view>
					</view>
				</view>
			</view>
			<view class="pt10 mt10" v-if="zhiwei != '企业直招'">
				<view>
					<view class="text-df margin-bottom">食宿介绍（选填）</view>
					<!-- <view class="areabox text-df" style="height: 370upx;">
						<textarea placeholder="请输入食宿介绍" maxlength="1500"
							style="width: 100%;height: 300upx;line-height: 1.5"
							:style="content ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'" v-model="content"
							placeholder-style="font-size:32upx;color:#E6E6E6" /> -->
					<!-- #ifdef MP-WEIXIN -->
					<view class="areabox text-df container" style="margin: 0; height: 456upx; padding: 0; position: relative;">
					<!-- #endif -->
					<!-- #ifdef APP-PLUS -->
					<view class="areabox text-df container" style="margin: 0; height: 470upx; padding: 0; position: relative;">
					<!-- #endif -->
						<robin-editor ref="robin" @sendContents="setFoodRoomContents" :value="content"></robin-editor>
						<view class="text-gray txtnum"
							:class="content && content.length == 1500 ? 'text-red' : 'text-gray'">
							{{ (content && content.length) || 0 }}/1500</view>
					</view>
				</view>
			</view>
			<view class="pt10 mt10" v-if="zhiwei != '企业直招'">
				<view>
					<view class="text-df margin-bottom">录用条件（选填）</view>
					<!-- <view class="areabox text-df" style="height: 370upx;">
						<textarea placeholder="请输入录用条件" maxlength="1500"
							style="width: 100%;height: 300upx;line-height: 1.5"
							:style="requirements ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
							v-model="requirements" placeholder-style="font-size:32upx;color:#E6E6E6" /> -->
					<!-- #ifdef MP-WEIXIN -->
					<view class="areabox text-df container" style="margin: 0; height: 456upx; padding: 0; position: relative;">
					<!-- #endif -->
					<!-- #ifdef APP-PLUS -->
					<view class="areabox text-df container" style="margin: 0; height: 470upx; padding: 0; position: relative;">
					<!-- #endif -->
						<robin-editor ref="robin" @sendContents="setRequirementConditions" :value="requirements"></robin-editor>
						<view class="text-gray txtnum"
							:class="requirements && requirements.length == 1500 ? 'text-red' : 'text-gray'">
							{{ (requirements && requirements.length) || 0 }}/1500</view>
					</view>
				</view>
			</view>
			<view class="pt10 mt10" v-if="zhiwei != '企业直招'">
				<view>
					<view class="text-df margin-bottom">岗位介绍（选填）</view>
					<!-- <view class="areabox text-df" style="height: 370upx;">
						<textarea placeholder="请输入岗位介绍" maxlength="1500"
							style="width: 100%;height: 300upx;line-height: 1.5"
							:style="jobDescription ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
							v-model="jobDescription" placeholder-style="font-size:32upx;color:#E6E6E6" /> -->
					<!-- #ifdef MP-WEIXIN -->
					<view class="areabox text-df container" style="margin: 0; height: 456upx; padding: 0; position: relative;">
					<!-- #endif -->
					<!-- #ifdef APP-PLUS -->
					<view class="areabox text-df container" style="margin: 0; height: 470upx; padding: 0; position: relative;">
					<!-- #endif -->
						<robin-editor ref="robin" @sendContents="setJobDescriptions" :value="jobDescription"></robin-editor>
						<view class="text-gray txtnum"
							:class="jobDescription && jobDescription.length == 1500 ? 'text-red' : 'text-gray'">
							{{ (jobDescription && jobDescription.length) || 0 }}/1500</view>
					</view>
				</view>
			</view>
			<view class="pt10 mt10" v-if="zhiwei != '企业直招'">
				<view>
					<view class="text-df margin-bottom">企业介绍（选填）</view>
					<!-- <view class="areabox text-df" style="height: 370upx;">
						<textarea placeholder="请输入企业介绍" maxlength="1500"
							style="width: 100%;height: 300upx;line-height: 1.5"
							:style="enterpriseIntroduction ? 'color:#333;font-weight:bold' : 'color:#E6E6E6'"
							v-model="enterpriseIntroduction" placeholder-style="font-size:32upx;color:#E6E6E6" /> -->
					<!-- #ifdef MP-WEIXIN -->
					<view class="areabox text-df container" style="margin: 0; height: 456upx; padding: 0; position: relative;">
					<!-- #endif -->
					<!-- #ifdef APP-PLUS -->
					<view class="areabox text-df container" style="margin: 0; height: 470upx; padding: 0; position: relative;">
					<!-- #endif -->
						<robin-editor ref="robin" @sendContents="setEnterpriseIntroductions" :value="enterpriseIntroduction"></robin-editor>
						<view class="text-gray txtnum"
							:class="enterpriseIntroduction && enterpriseIntroduction.length == 1500 ? 'text-red' : 'text-gray'">
							{{ (enterpriseIntroduction && enterpriseIntroduction.length) || 0 }}/1500</view>
					</view>
				</view>
			</view>
			<!-- <view class="bgc"></view> -->
			<view class="cu-item arrow" @tap="getLocation">
				<view class="padding-top">
					<view class=" text-df" style="margin-bottom: 12upx;">工作地点</view>
					<view class="" style="color: #E6E6E6;" v-if="!company_address">请选择地址</view>
					<view v-else class=" text-black text-bold text-md" style="padding-right: 50upx;">
						{{ company_address }}</view>
				</view>
			</view>
			<view class="cu-item arrow" @tap="selectFuli('changeFuli')">
				<view class="">
					<view class="  text-df" style="margin-bottom: 12upx;">职位福利</view>
					<view class="flex flex-wrap align-center justify-start">
						<text v-if="fuli && fuli.length == 0" class="text-md"
							:style="fuli.welfare_name ? 'color:#666666' : 'color:#E6E6E6'">请选择福利标签</text>
						<view class="biaoqian active" v-for="(item, index) in fuli" :key="index">
							{{ item.welfare_name }}
							<!-- <image @tap.stop="delJob(fuli, index)" :src="IMG_URL + 'static/miniwechat/cha.png'" mode=""></image> -->
						</view>
					</view>
				</view>
			</view>
			<!-- <view class="f30 bold mt10">
				您想要招聘{{ zhaopin_number || 0 }}人,需要缴纳保证金
				<text class="text-red">{{ totalMoney || 0 }}</text>
				元
			</view> -->
		</view>
		<!-- 列表end -->
		<!-- #ifndef MP-WEIXIN -->
		<view class="fixed flex align-center">
			<view class="btn_del" @tap="delPost">删除</view>
			<view class="save_btn text-df" @tap="savePost">保存</view>
		</view>
		<!-- #endif -->

		<!-- #ifdef MP-WEIXIN -->
		<cover-view class="fixed flex align-center">
			<cover-view class="btn_del" @tap="delPost">删除</cover-view>
			<cover-view class="save_btn text-df" @tap="savePost">保存</cover-view>
		</cover-view>
		<!-- #endif -->
		<!-- #ifndef MP-WEIXIN -->
		<w-picker :visible.sync="agechoose" v-if="age_list.length > 0" mode="linkage" :options="age_list"
			@confirm="ageappConfirm" ref="agechoose" themeColor="#2A89FF"></w-picker>
		<!-- #endif -->
	</view>
</template>

<script>
	import benUpload from '@/components/ben-upload/ben-upload.vue';
	import {
		experience,
		age_list
	} from '@/common/js/mockData.js';
	import {
		age2_list
	} from '../../common/age.js';
	const Checker = require('@/common/js/formValidation.js');
	let zhiwei=''
	export default {
		components: {
			benUpload
		},
		data() {
			return {
				experience, //经验要求
				act_experience: '', //经验要求
				price: false,
				experi: false,
				education: '', //学历Id
				defaultpic: false, //是否展示图片
				agechoose: false,
				age_list: age_list,
				salaryDescription: '', //薪资说明
				requirements: '', //录用条件
				jobDescription: '', //岗位介绍
				iwant: '', //我想找  职位类别
				IMG_URL:this.IMG_URL,
				uShow: true, //图片上传成功在展示
				enterpriseIntroduction: '', //企业介绍
				age2_list: JSON.parse(JSON.stringify(age2_list)),
				age_inx: [0, 0],
				age_act: '', //选中的年龄段
				hidden: true, //职位描述隐藏
				zhiwei: zhiwei, //选择的职位
				zhiwei_id: '', //职位id
				pay_status: '', //支付状态
				degree_list: [], //学位列表
				degree_act: '', //选中的学位
				busort: '', //补贴分类
				price_butie: '', //工价金额
				factory_pay:'',//厂发薪资
				server_price:'',//门店服务费
				subsidy: '', //补贴
				subsidy_remarks: '', //补贴备注
				car_subsidy: '', //车补
				receiving_subsidy_date: '', //拿补贴日期
				content: '', // 食宿介绍
				fabu_money: '', //发布职位费用
				fuli: [], //选择的公司福利
				zhaopin_number: '', //招聘人数
				company_address: '', //公司地址
				imgOne: [], //职位主图
				videoImg: '', //职位视频缩略图
				video: '', //职位视频
				imgList: [], //职位轮播
				hb_sort: [], //红包类型列表
				hbSort: '', //选择的红包类型
				hbSort_id: '', //选择的红包类型id
				hb_title: '', //红包标题
				add_price: '', //加薪金额
				share_num: '', //助力分享人数
				imgpath: [],
				max: 4, //图片最大数量
				check: '',
				mobeil1: '', //联系电话
				mobeil2: '', //联系电话
				mobeil3: '', //联系电话
				name1: '', //姓名
				name2: '', //姓名
				name3: '', //姓名
				title: '', //职位标题
				isopen: true, //跳页面
				priceOne: '', //单个保证金
				aid: '', //职位id
				checked: false, //是否可更改人数
				min_salary: '', //最小薪资
				max_salary: '', //最高薪资
				zhiwei_list: [{
						id: 1,
						label: '劳务派遣'
					},
					// {
					// 	id: 2,
					// 	label: '日结工作'
					// },
					{
						id: 3,
						label: '企业直招'
					}
				],
				price_sort: [{
						id: 1,
						label: '小时'
					},
					{
						id: 2,
						label: '返费'
					},
					{
						id: 3,
						label: '差价/小时'
					},
					{
						id: 4,
						label: '同工同酬'
					}, {
						id: 5,
						label: '计件'
					}, {
						id: 6,
						label: '底薪加提成'
					}, {
						id: 7,
						label: '日结'
					}, {
						id: 8,
						label: '周结'
					},
				],
				city: '', //城市
				lon: '', //公司经度
				lat: '', //公司纬度
				open: false, //返回视频
				longitude: '', //经度
				latitude: '' ,//纬度
				richTextContents: '',
				foodRoomContents: '',
				requirementConditions: '',
				jobDescriptions: '',
				enterpriseIntroductions: '',
				station_type: 1
			};
		},
		computed: {
			totalMoney() {
				return ((this.zhaopin_number * (this.priceOne * 100)) / 100).toFixed(2);
			}
		},
		onLoad(option) {
			uni.showLoading({});
			this.aid = option.aid;
			this.getDegree();
			this.getPrice();
			this.gethb_sort()
			this.$Common.getLocation(e => {
				//获取经纬度
				this.longitude = e.longitude;
				this.latitude = e.latitude;
				this.get_detail();
			});
			
			// 监听选择公司福利
			uni.$on('changeFuli', data => {
				this.fuli = data.arr;
				if (this.fuli != '') {
					uni.setStorageSync('fuliTag', this.fuli);
				}
			});
			uni.$on('changeFuli', data => {
				// 监听选择公司福利
				this.fuli = data.arr;
			});
uni.$on('position', data => {
				// 职位类别
				console.log(data, '监听我选择我想找');
				this.iwant = data;
				console.log(this.iwant);
				if (this.iwant != '') {
					uni.setStorageSync('jobTag', this.iwant);
				}
			});
			uni.$on('video', data => {
				// 监听选择视频
				this.video = data.msg;
				this.videoImg = data.msg + '?x-oss-process=video/snapshot,t_10000,f_jpg,w_800,h_600,m_fast';
				this.open = true;
			});

			// 监听选择地点
			// #ifdef APP-PLUS
			uni.$on('chooseLocation', data => {
				this.company_address = data.name;
				this.city = data.citys.areac;
				this.lon = data.longitude;
				this.lat = data.latitude;

			})
			// #endif
		},
		onUnload() {
			uni.$off('changeFuli');
			uni.$off('video');
			uni.$off('position');
			uni.$emit('update', '更新列表');
		},
		methods: {
			focusCom() {
				if (this.pay_status == 1) {
					this.$Common.toast('不可更改');
				}
			},
			gethb_sort() { //获取红包类型
				this.$Request.post(this.$api.index.get_fuli_info, {
					jobposition_id: this.aid
				}).then(res => {
					if (res.code == 1) {
						this.hb_sort = res.data.red_envelope_type;
					} else {}
				});
			},
			get_detail() {
				//获得职位信息
				this.$Request
					.post(this.$api.company.positionInfo, {
						aid: this.aid,
						longitude: this.longitude,
						latitude: this.latitude
					})
					.then(res => {
						uni.hideLoading();
						if (res.code == 1) {
							this.title = res.data.job.name;
							this.imgOne = res.data.job.image;
							this.imgOne && this.imgOne.map((item) => {
								item.loading = '100%'
							})
							this.videoImg = res.data.job.video_id;
							this.video = res.data.job.video;
							this.imgList = res.data.job.ads_imgas || '';
							this.imgList && this.imgList.map((item) => {
								item.loading = '100%'
							})
							this.defaultpic = true;
							let station_type = res.data.job.station_type; //职位类型 1劳务派遣 2日结工作 3企业直招
							this.station_type = station_type;
							if (station_type == 1) {
								this.zhiwei = '劳务派遣';
							} else if (station_type == 2) {
								this.zhiwei = '日结工作';
							} else if (station_type == 3) {
								this.zhiwei = '企业直招';
							}
							this.zhiwei_id = res.data.job.station_type;
							this.zhaopin_number = res.data.job.numbers;
							this.min_salary = res.data.job.min_salary;
							this.max_salary = res.data.job.max_salary;
							this.busort = res.data.job.fan_type;
							this.busort_id = res.data.job.fan_type_id;
							this.price_butie = res.data.job.fan_price || 0;
							this.factory_pay=res.data.job.factory_pay || ''
							this.server_price=res.data.job.server_price
							this.subsidy = res.data.job.subsidy || ''
							this.subsidy_remarks = res.data.job.subsidy_remarks || ''
							this.car_subsidy = res.data.job.car_subsidy || ''
							this.receiving_subsidy_date = res.data.job.receiving_subsidy_date || ''
							this.act_experience = res.data.job.experience;
							this.education = res.data.job.education; //学历id
							this.degree_act = res.data.job.education_name; //学历
							this.age_act = res.data.job.age;
							this.content = res.data.job.accommodation_introduction; //食宿介绍
							this.salaryDescription = this.richTextContents = res.data.job.salary_description //薪资要求
							this.requirements = this.requirementConditions = res.data.job.employment_conditions //录用条件
							this.enterpriseIntroduction = this.enterpriseIntroductions = res.data.job.enterprise_introduction //企业介绍
							this.jobDescription = this.jobDescriptions = res.data.job.job_description //岗位介绍
							this.company_address = res.data.job.address;
							this.city = res.data.job.city;
							// this.lon = res.data.job.company.lon;
							// this.lat = res.data.job.company.lat;
							this.fuli = res.data.job.welfare_id;
							this.pay_status = res.data.job.pay_status;
							this.name1 = res.data.job.driver_name;
							this.name3 = res.data.job.finance_manager_name;
							this.name2 = res.data.job.resident_manager_name;
							this.mobeil1 = res.data.job.driver_phone;
							this.mobeil3 = res.data.job.finance_manager_phone;
							this.mobeil2 = res.data.job.resident_manager_phone;
							this.share_num = res.data.job.red_envelope_num //红包助力人数
							this.add_price = res.data.job.red_envelope_money //红包金额
							this.hbSort_id = res.data.job.red_envelope_type //红包类型id			
							this.iwant={
								aid: res.data.job.stations,
								station_name: res.data.job.stations_name
							}
							if (this.hb_sort&&this.hbSort_id) {
								console.log(this.hb_sort,'===');
								this.hbSort = this.hb_sort[this.hbSort_id].label //红包类型  通过id获取列表里面对应的数据
							}

							this.hb_title = res.data.job.red_envelope_theme //红包标题
							if (res.data.driver_name == 0) {
								this.name1 = '';
							}
							if (res.data.finance_manager_name == 0) {
								this.name2 = '';
							}
							if (res.data.resident_manager_name == 0) {
								this.name3 = '';
							}
							if (res.data.driver_phone == 0) {
								this.mobeil1 = '';
							}
							if (res.data.finance_manager_phone == 0) {
								this.mobeil2 = '';
							}
							if (res.data.resident_manager_phone == 0) {
								this.mobeil3 = '';
							}
							if (this.pay_status == 1) {
								this.checked = true;
							} else {
								this.checked = false;
							}
						} else {
							uni.showToast({
								title: res.msg,
								icon: 'none'
							});
						}
					});
			},
			chooseLive(e) {
				//选择图片
				this.imgOne = e;
				if (e != '') {
					this.uShow = true
					uni.hideLoading()
				}
			},
goSelectJob(type) {
				// 点击我想找工作跳转
				// uni.$off(type);
				uni.navigateTo({
					url: '../../pagescommon/my_search?jobtype=1&request=1&type=' + type
				});
			},
			bannerLive(e) {
				//图片轮播
				this.imgList = e;
				if (e != '') {
					this.uShow = true
					uni.hideLoading()
				}
			},
			ChooseImage() {
				//选择视频
				uni.navigateTo({
					url: 'upload_video'
				});
			},
			DelImg() {
				//删除视频
				this.videoImg = '';
				this.video = ''
				this.open = false;
			},
			// releavem1(){//联系方式1失去焦点
			// 	if (!/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.mobeil1)) {
			// 		this.$Common.toast('请填写正确的联系方式1')
			// 		return false;
			// 	}
			// },
			// releavem2(){//联系方式2失去焦点
			// 	if (!/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.mobeil2)) {
			// 		this.$Common.toast('请填写正确的联系方式2')
			// 		return false;
			// 	}
			// },
			// releavem3(){//联系方式3失去焦点
			// 	if (!/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.mobeil3)) {
			// 		this.$Common.toast('请填写正确的联系方式3')
			// 		return false;
			// 	}
			// },
			getDegree() {
				//获取学位
				this.$Request.post(this.$api.user.user_degree).then(res => {
					if (res.code == '1') {
						this.degree_list = res.data;
					}
				});
			},
			getPrice() {
				//获取保证金
				this.$Request.post(this.$api.company.companyInfo).then(res => {
					if (res.code == '1') {
						this.priceOne = parseFloat(res.data.info.money);
					}
				});
			},
			getLocation() {
				//获取工作地点定位
				let _this = this;
				// #ifdef APP-PLUS
				uni.navigateTo({
					url: '/pagescenter/index'
				})
				// #endif
				// #ifndef APP-PLUS
				uni.chooseLocation({
					success(res) {
						_this.company_address = res.address;
						_this.city = res.address;
						_this.lon = res.longitude;
						_this.lat = res.latitude;
					}
				});
				// #endif
			},
			selectFuli(type) {
				uni.setStorageSync('fuliTag', this.fuli);
				//选择福利
				uni.navigateTo({
					url: '../../pagescommon/gongsi_fuli'
				});
			},
			leavePrice() { //工价金额失去焦点
				if (!/^[1-9]/.test(this.price_butie)) {
					this.$Common.toast('请输入不以0开头的工价金额');
					this.price_butie = ''
					return false;
				}
			},
			leavePerson() { //招聘人数失去焦点
				if (!/^[1-9]\d*$/.test(this.zhaopin_number)) {
					this.$Common.toast('请输入不以0开头并且为整数的招聘人数');
					this.zhaopin_number = ''
					return false;
				}
			},
			leaveCon() {
				//最大薪资失去焦点
				if (!/^[1-9]/.test(this.min_salary)) {
					this.$Common.toast('请输入不以0开头的薪资要求');
					this.min_salary = ''
					return false;
				}
				if (!/^[1-9]/.test(this.max_salary)) {
					this.$Common.toast('请输入不以0开头的薪资要求');
					this.max_salary = ''
					return false;
				}
				if (Number(this.max_salary) < Number(this.min_salary)) {
					this.$Common.toast('薪资要求不合理')
					this.max_salary = ''
				}
			},
			savePost() {
				//发布并保存
				// uni.navigateTo({
				// 	url: 'fabu?title=fabu&price=' + this.totalMoney
				// });
				// return;
				if (!this.title) {
					this.$Common.toast('请选择职位标题');
					return false;
				}
				if (this.iwant == '') {
					this.$Common.toast('请选择职位类别');
					return;
				}
				// if (this.imgOne == '') {
				// 	this.$Common.toast('请选择职位主图');
				// 	return false;
				// }
				// if (this.videoImg == '') {
				// 	this.$Common.toast('请选择职位视频');
				// 	return false;
				// }

				// if (!this.imgList) {
				// 	this.$Common.toast('请选择职位轮播图');
				// 	return false;
				// }
				if (!this.zhiwei) {
					this.$Common.toast('请选择职位类型');
					return false;
				}
				// if (!this.zhaopin_number) {
				// 	this.$Common.toast('请输入招聘人数');
				// 	return false;
				// }
				if (!this.min_salary && !this.max_salary) {
					this.$Common.toast('请输入薪资要求');
					return false;
				}
				if (Number(this.max_salary) < Number(this.min_salary)) {
					this.$Common.toast('薪资要求不合理');
					return false;
				}
				if (!this.act_experience) {
					this.$Common.toast('请选择经验要求');
					return false;
				}
				if (!this.degree_act) {
					this.$Common.toast('请选择学历要求');
					return false;
				}
				if (!this.age_act) {
					this.$Common.toast('请选择年龄要求');
					return false;
				}
				if (this.mobeil1) {
					if (!/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.mobeil1)) {
						if(this.zhiwei = '企业直招'){
							this.$Common.toast('请填写正确的联系方式')
						}else{
							this.$Common.toast('请填写正确的联系方式1')
						}
						return false;
					}
				}
				if (this.mobeil2) {
					if (!/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.mobeil2)) {
						this.$Common.toast('请填写正确的联系方式2')
						return false;
					}
				}
				if (this.mobeil3) {
					if (!/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.mobeil3)) {
						this.$Common.toast('请填写正确的联系方式3')
						return false;
					}
				}
				if (!this.company_address) {
					this.$Common.toast('请选择工作地点');
					return false;
				}
				var fuli_arr = []; //职位
				var vocation_type = '';
				this.fuli.map(item => {
					fuli_arr.push(item.aid);
				});
				vocation_type = fuli_arr.join(',');
				if (!vocation_type) {
					this.$Common.toast('请选择福利标签');
					return false;
				}
				var skill_certificate = [],
				image=''
				if(this.imgList!=''){
					this.imgList.map(item => {
						skill_certificate.push(item.aid);
					});
				}
				if(this.imgOne!=''){
					image=this.imgOne[0].aid
				}
					
				let formData = {
					aid: this.aid,
					name: this.title, //职位标题
					image: image||'', //职位主图
					video: this.video || 0, //职位视频
					ads_imgas: skill_certificate.join(',')||'', //职位轮播图
					station_type: this.zhiwei_id, //职位类型
					fan_type: this.busort_id, //工价类型
					fan_price: Number(this.price_butie), //工价金额
					factory_pay:this.factory_pay||'',//厂发薪资
						server_price:this.server_price||'',//服务费
					subsidy: this.subsidy||'', //补贴
					subsidy_remarks: this.subsidy_remarks||'', //补贴备注
					car_subsidy: this.car_subsidy||'', //车补
					receiving_subsidy_date: this.receiving_subsidy_date||'', //拿补贴日期
					experience: this.act_experience, //经验要求
					education: this.education, //学历
					age: this.age_act, //年龄要求
					min_salary: this.min_salary, //最低薪资
					max_salary: this.max_salary, //最高薪资
					accommodation_introduction: this.foodRoomContents ||'', //食宿介绍
					salary_description: this.richTextContents || '', //薪资要求
					employment_conditions: this.requirementConditions ||'', //录用条件
					job_description: this.jobDescriptions ||'', //岗位介绍
					enterprise_introduction: this.enterpriseIntroductions ||'', //企业介绍
					address: this.company_address||'', //工作地点
					welfare: vocation_type, //福利标签
					numbers: this.zhaopin_number||'', //招聘人数
					stations:this.iwant.aid,//职位分类
					city: this.city, //工作城市
					lon: this.lon,
					lat: this.lat,
					driver_name: this.name1 || '',
					driver_phone: this.mobeil1 || '',
					resident_manager_name: this.name2 || '',
					resident_manager_phone: this.mobeil2 || '',
					finance_manager_name: this.name3 || '',
					finance_manager_phone: this.mobeil3 || '',
					red_envelope_num: this.share_num, //红包助力人数
					red_envelope_money: this.add_price || 0, //红包金额
					red_envelope_type: this.hbSort_id, //红包类型
					red_envelope_theme: this.hb_title, //红包标题
				};
				if (this.isopen == false) {
					return;
				}
				this.isopen = false;
				setTimeout(() => {
					this.isopen = true;
				}, 1500);
				this.$Request.post(this.$api.user.user_edit_job, formData).then(res => {
					if (res.code == 1) {
						this.$Common.toast('更新成功');
						uni.$emit('updateList')
						setTimeout(() => {
							uni.navigateBack({});
						}, 1500);
					} else {
						this.$Common.toast(res.msg);
					}
				});
			},
			gorule() {
				//跳发布规则
				uni.navigateTo({
					url: '../../pagescommon/post_recruitment'
				});
			},
			playVideo() {
				//播放视频
				uni.navigateTo({
					url: 'play_video?url=' + this.video
				});
			},
			delPost() {
				//删除职位
				uni.showModal({
					title: '提示',
					content: '您确定要删除职位吗',
					success: res => {
						if (res.confirm == true) {
							this.$Request
								.post(this.$api.user.user_delet_job, {
									aid: this.aid
								})
								.then(res => {
									this.$Common.toast(res.msg);
									if (res.code == 1) {
										setTimeout(() => {
											uni.reLaunch({
												url: '../../pages/index/index'
											});
										}, 400);
									} else {
										this.$Common.toast(res.msg);
									}
								});
						}
					},
					fail: err => {
						this.$Common.toast('网络错误，请稍后重试');
					},
				});
			},

			toggleTab(who) {
				//显示选择组件
				this.$data[who] = true;
			},
			experienceConfirm(e) {
				//选择经验要求
				var index = e.detail.value;
				this.act_experience = this.experience[index].label;
			},
			degreeConfirm(e) {
				//选择学历要求
				var index = e.detail.value;
				this.degree_act = this.degree_list[index].label;
				this.education = this.degree_list[index].id;
			},
			zhiweiConfirm(e) {
				//选择职位
				var index = e.detail.value;
				this.zhiwei = this.zhiwei_list[index].label;
				this.zhiwei_id = this.zhiwei_list[index].id;
			},
			sortConfirm(e) {
				//选择工价类型
				var index = e.detail.value;
				this.busort = this.price_sort[index].label;
				this.busort_id = this.price_sort[index].id;
			},
			hbConfirm(e) {
				//选择红包类型
				var index = e.detail.value;
				this.hbSort = this.hb_sort[index].label;
				this.hbSort_id = this.hb_sort[index].id;
			},
			ageappConfirm(val) {
				//app端选择年龄
				this.age_act = val.value[0] + '-' + val.value[1];
			},
			ageConfirm(e) {
				//选择年龄
				this.age_inx = e.detail.value;
				// age_list[0][age_inx[0]]}}-{{ age_list[1][age_inx[1]]
				this.age_act = this.age2_list[0][this.age_inx[0]] + '-' + this.age2_list[1][this.age_inx[1]];
			},
			ageChange(e) {
				let act_inx = e.detail;
				if (act_inx.column == 0) {
					this.age2_list[1] = age2_list[1].slice(act_inx.value);
					this.age_inx[1] = 0;
				}
			},
			setRichTextContents(html) {
				// console.error(html);
				this.richTextContents = html;
			},
			setFoodRoomContents(html) {
				this.foodRoomContents = html;
			},
			setRequirementConditions(html) {
				this.requirementConditions = html;
			},
			setJobDescriptions(html) {
				this.jobDescriptions = html;
			},
			setEnterpriseIntroductions(html) {
				this.enterpriseIntroductions = html;
			}
		}
	};
</script>

<style lang="scss">
	page {
		background-color: #fff;
		height: 100%;
		letter-spacing: 1px;
	}

	.active {
		background-color: #f27b04 !important;
		color: #fff !important;
	}

	.bgc {
		width: 100%;
		height: 20rpx;
		background-color: #f9f9f9;
	}

	.head_list {
		margin-bottom: 100upx;
	}

	.header {
		width: 750rpx;
		height: 440rpx;
		position: relative;

		image {
			width: 100%;
			height: 100%;
		}

		.title_txt {
			position: absolute;
			top: 0;
			left: 0;
		}
	}

	.areabox {
		width: 100%;
		height: 160upx;
		border: 1px solid #cccccc;
		padding: 20upx;
		position: relative;

		.txtnum {
			position: absolute;
			font-size: 24upx;
			bottom: 8upx;
			right: 20upx;
		}

		textarea {
			position: relative;
			z-index: 0;
		}
	}

	uni-textarea {
		width: 560rpx;
		height: 400rpx;
	}

	.btn {
		width: 100%;
		height: 88rpx;
		line-height: 88rpx;
		text-align: center;
		background: #2a89ff;
		color: #fff;
	}

	.biaoqian {
		padding: 8rpx 12rpx;
		background-color: #50aeff;
		border-radius: 10rpx;
		font-size: 22rpx;
		margin-right: 20rpx;
		margin-bottom: 16upx;
		position: relative;
		text-align: center;

		image {
			width: 38rpx;
			height: 38rpx;
			position: absolute;
			right: -19rpx;
			top: -19rpx;
		}
	}

	.solids image {
		width: 158upx;
		height: 158upx;
	}

	.solids::after {
		border: 0;
	}

	.bom {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
	}

	cover-view {
		display: inline-block;
	}

	.fixed {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100upx;
		z-index: 100;

		cover-view {
			width: 50%;
			height: 100%;
			font-size: 32upx;
			text-align: center;
			line-height: 100upx;
		}

		view {
			width: 50%;
			height: 100%;
			font-size: 32upx;
			text-align: center;
			line-height: 100upx;
		}

		.btn_del {
			background-color: #e2f1ff;
			color: #1b90ff;
		}

		.save_btn {
			background-color: #1b90ff;
			color: #ffffff;
		}
	}

	.cu-form-group {
		padding: 0;

		.bg-img {
			width: 300upx;
			height: 200upx;
			position: relative;
		}

		.play {
			position: absolute;
			left: 0;
			bottom: 0;
			right: 0;
			top: 0;
			z-index: 10;
			width: 100%;
			height: 100%;
			display: flex;
			justify-content: center;
			align-items: center;
			background: rgba(255, 255, 255, 0.3);

			image {
				max-width: 80upx;
				max-height: 80upx;
			}
		}

		.bg-img>image {
			width: 100%;
			height: 100%;
		}
	}

	.cu-list.menu.sm-border>.cu-item:after {
		left: 0;
	}

	.cu-list.menu>.cu-item.arrow {
		padding: 0;
		min-height: 140upx;
	}

	.cu-list.menu>.cu-item.arrow:before {
		top: 58upx;
		opacity: 0.6;
	}

	.cu-list.menu>.cu-item:last-child:after {
		border-bottom: 0.5px solid #ddd
	}
// .cu-list.menu > .cu-item.arrow:nth-child(19):before,
// .cu-list.menu > .cu-item.arrow:nth-child(15):before,
// .cu-list.menu > .cu-item.arrow:nth-child(14):before,
// .cu-list.menu > .cu-item.arrow:nth-child(13):before,
// .cu-list.menu > .cu-item.arrow:nth-child(12):before,
// .cu-list.menu > .cu-item.arrow:nth-child(11):before,
// .cu-list.menu > .cu-item.arrow:nth-child(10):before,
// 	.cu-list.menu>.cu-item.arrow:nth-child(8):before,
// 	.cu-list.menu>.cu-item.arrow:nth-child(7):before,
	.cu-list.menu>.cu-item.arrow:before {
		opacity: 0;
	}
</style>
